widget: Initialize a local variable
authorTimm Bäder <mail@baedert.org>
Thu, 18 Jan 2018 13:42:39 +0000 (14:42 +0100)
committerTimm Bäder <mail@baedert.org>
Thu, 18 Jan 2018 13:45:13 +0000 (14:45 +0100)
We will later pass this variable on to some other functions, so be safe
against them using the value.

gtk/gtkwidget.c

index 2f1219925a280a8ef32b1e9efa884542d2de096f..46ad98022db521f06b47bde66677008c77fc1e0f 100644 (file)
@@ -4513,7 +4513,7 @@ gtk_widget_size_allocate (GtkWidget           *widget,
   gboolean size_changed;
   gboolean baseline_changed;
   gboolean position_changed;
-  gint natural_width, natural_height, dummy;
+  gint natural_width, natural_height, dummy = 0;
   gint min_width, min_height;
   GtkCssStyle *style;
   GtkBorder margin, border, padding;